package com.example.springbootstartermqttprovider.myservice.controller;

import com.example.springbootstartermqttprovider.myservice.domain.TBill;
import com.example.springbootstartermqttprovider.myservice.service.TBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Eric
 * @date 2023-08-01 15:43
 */
@RestController
@RequestMapping("/tbill")
public class EricUserController {
    @Autowired
    private TBillService tBillService;

    @GetMapping("/list")
    public List<TBill> getEricUserList(){
        List<TBill> list = tBillService.list();
        return list;
    }
}

